window.addEventListener('message', function(event) {
    if (event.data.type === 'scroll') {
      window.scrollTo(0, event.data.scrollTop);
    }
  });
  